solution "yiwutest"

	configurations {"Debug", "Release"}
	buildoptions {"-finput-charset=GBK"}

	--project aiis
	project "aiis"
		language "C++"
		files {"**.h", "**.cpp"}

		--------------------------------sqlite start---------------------------------------
		local sqlite = "E:/DEVELOPMENT/DEV/sqlite"
		
		includedirs 
		{
			(sqlite .. "/sqlite-amalgamation-3071600")
		}
		
		libdirs 
		{
			(sqlite .. "/")
		}
		
		links
		{
			"sqlite3"
		}
		--------------------------------sqlite start---------------------------------------
		
		--------------------------------pthread start---------------------------------------
		local pthread = "E:/DEVELOPMENT/DEV/pthread"
		
		includedirs 
		{
			(pthread .. "/include")
		}
		
		libdirs 
		{
			(pthread .. "/lib/x86")
		}
		
		links
		{
			"pthreadGCE2"
		}
		--------------------------------pthread stop---------------------------------------
		
		--------------------------------wxwidgets start---------------------------------------
		local wx = "E:/DEVELOPMENT/DEV/wxMSW-2.8.12"
		
		defines {"WIN32", "wxUSE_UNICODE", "wxUSE_WX_RESOURCES", "wxUSE_PROLOGIO"}
		
		includedirs
		{
			(wx .. "/include"),
			(wx .. "/contrib/include"),
			(wx .. "/lib/gcc_lib/mswu")
		}
		
		libdirs
		{
			(wx .. "/lib"),
			(wx .. "/lib/gcc_lib")
		}
		
		links
		{
			"wxmsw28u_core", 	"wxbase28u", 		"wxbase28u_xml", 	"wxexpat",
			"wxjpeg", 			"wxpng", 			"wxregexu", 		"kernel32",
			"user32", 			"gdi32", 			"wxmsw28u_adv", 	"wxmsw28u_aui",
			"wxmsw28u_dbgrid", 	"wxmsw28u_html", 	"wxmsw28u_media", 	"wxmsw28u_richtext",
			"wxmsw28u_xrc", 	"wxregexu", 		"wxtiff", 			"wxzlib",
			"comdlg32", 		"winspool", 		"winmm", 			"shell32",
			"comctl32", 		"ole32", 			"oleaut32", 		"uuid",
			"rpcrt4", 			"advapi32"
		}
		--------------------------------wxwidgets stop---------------------------------------

		configuration "Debug"
			defines {"DEBUG"}
			kind "ConsoleApp"
			flags {"Symbols"}
			targetdir "./build/Debug"
			prebuildcommands 
			{
				"xcopy .\\res .\\build\\Debug\\res /s /e /y /k /i /d /q",
				"xcopy .\\lib .\\build\\Debug /s /e /y /d /q"
			}

		configuration "Release"
			defines {"NDEBUG"}
			kind "WindowedApp"
			flags {"Optimize"}
			targetdir "./build/Release"
			prebuildcommands 
			{
				"xcopy .\\res .\\build\\Release\\res /s /e /y /k /i /d /q",
				"xcopy .\\lib .\\build\\Release /s /e /y /d /q"
			}
		 